package com.JFapp.service;

import com.JFapp.domain.dto.*;
import com.JFapp.domain.entity.ResponseResult;
import com.JFapp.domain.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;


/**
 * 计服用户表(User)表服务接口
 *
 * @author makejava
 * @since 2023-11-08 23:32:09
 */
public interface UserService extends IService<User> {

    ResponseResult register(User user);

    User getByName(String name);

    String selectPhone(Long UserId);
    ResponseResult selectUserInfo();

    ResponseResult updateUserInfo(User user);

    Long selectID(String userName);

    User findUserByEmail(String email);

    User findUserByPhone(String ep);

    List<Long> selectIDs(List<String> userName);

    ResponseResult selectAllUser(Integer pageNum, Integer pageSize);

    ResponseResult changeUserStatus(ChangeUserStatusDto changeUserStatusDto);

    ResponseResult getUserDetail(Long userId);

    ResponseResult updateUser(UserDetailDto userDetailDto);


    Map<Long, String> getIdAndNameById(List<Long> userIds);

    ResponseResult getUserByFuzzy(UserByFuzzyDto userDetailDto);


//    ResponseResult resetPwdById(ResetPwdDto resetPwdDto);
}
